# -*- coding:utf-8 -*-
# @FileName  :dhcc_first_page.py
# @Time      :2020/12/14 15:49
# @Author    :Zhoujirong
# @Desc      : 首页带提示的

from biz.cases.base_case import BaseCase
from common.log import Log
from biz.flow.first_page import FirstPageRequest

class TestFirstPagePerWeekday(BaseCase):
    data_file_name = 'first_page.yaml'
    @classmethod
    def setUpClass(cls):
        cls.cookie = BaseCase().get_token()

    def test_usershortcut(self):
        '''信息提示--可领取任务、待审批任务、查询量、预警量等'''
        ret = FirstPageRequest.ent_getusershortcut(self.cookie)
        Log.info(ret)
        self.assertEqual(2,len(ret.cardMenu))#可领取任务、待审批任务
        self.assertEqual(4,len(ret.textMenu))#授权补录、审批任务、预警管理、查询量















if __name__ == "__main__":
    pass